package com.well.rpc.register.ribbon;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.ServerList;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WdRibbonClientConfiguration {

    @Bean
    public ServerList<?> ribbonServerList(IClientConfig config) {
        WdServerList wdServerList = new WdServerList();
        wdServerList.initWithNiwsConfig(config);
        return  wdServerList;
    }
}
